package com.example.braden.answergame.modules.main.domain;

import java.util.List;

/**
 * Created by braden on 2018/3/17.
 * 用户答题状态
 */

public class UserStatusEntity extends BaseMessage {

    private BodyBean body;

    public BodyBean getBody() {
        return body;
    }

    public void setBody(BodyBean body) {
        this.body = body;
    }

    @Override public String toString() {
        return "UserStatusEntity{" + "body=" + body.toString() + '}';
    }

    public static class BodyBean {
        /**
         * rid : 8f6162d7605cfa6d12586022e4c96b88
         * gid : null
         * users : [{"uid":1,"status":"Y"},{"uid":2,"status":"N"}]
         */

        private String rid;
        private String gid;
        private int qid;

        private List<UsersBean> users;

        @Override public String toString() {
            return "BodyBean{" + "rid='" + rid + '\'' + ", gid=" + gid + ", users=" + users + '}';
        }

        public String getRid() {
            return rid;
        }

        public void setRid(String rid) {
            this.rid = rid;
        }

        public String getGid() {
            return gid;
        }

        public void setGid(String gid) {
            this.gid = gid;
        }

        public int getQid() {
            return qid;
        }

        public void setQid(int qid) {
            this.qid = qid;
        }

        public List<UsersBean> getUsers() {
            return users;
        }

        public void setUsers(List<UsersBean> users) {
            this.users = users;
        }

        public static class UsersBean {
            /**
             * uid : 1
             * status : Y
             */

            private String uid;
            private int status;

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }
        }
    }
}
